(function(){"use strict";BX.namespace("BX.Landing.UI.Panel");var n=BX.Landing.Utils.addClass;var t;var e=new Date;var a=[["s","sago"],["i","iago"],["H","Hago"],["d","dago"],["m100","mago"],["m","mago"]];BX.Landing.UI.Panel.StatusPanel=function(t){BX.Landing.UI.Panel.BasePanel.apply(this,arguments);n(this.layout,"landing-ui-panel-status");if(!!document.body.querySelector(".landing-edit-mode")){parent.document.body.appendChild(this.layout)}this.runInterval();this.updateTime()};BX.Landing.UI.Panel.StatusPanel.setLastModified=function(n){e=new Date(n*1e3)};BX.Landing.UI.Panel.StatusPanel.getInstance=function(){return BX.Landing.UI.Panel.StatusPanel.instance||(BX.Landing.UI.Panel.StatusPanel.instance=new BX.Landing.UI.Panel.StatusPanel)};BX.Landing.UI.Panel.StatusPanel.prototype={constructor:BX.Landing.UI.Panel.StatusPanel,__proto__:BX.Landing.UI.Panel.BasePanel.prototype,runInterval:function(){clearInterval(t);t=setInterval(this.updateTime.bind(this),10*1e3)},updateTime:function(){let n=e.getTime();let t=(new Date).getTime();if(n>t){this.setContent(BX.Landing.Loc.getMessage("LANDING_PAGE_STATUS_UPDATED_NOW"));return}this.setContent([BX.Landing.Loc.getMessage("LANDING_PAGE_STATUS_UPDATED"),BX.date.format(a,n/1e3,t/1e3)].join(" "))},update:function(){this.show().then(function(){this.runInterval();e=new Date;this.setContent(BX.Landing.Loc.getMessage("LANDING_PAGE_STATUS_UPDATED_NOW"))}.bind(this))}}})();
//# sourceMappingURL=status_panel.map.js